/**  
 * All rights Reserved, Designed By <a href="www.itttq.com" target="_blank">www.itttq.com</a>
 * @date:   2017-09-09 21:49:48
 * @Copyright: 2017 <a href="www.itttq.com" target="_blank">www.itttq.com</a> Inc. All rights reserved. 
 */
package com.itttq.kb.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import com.itttq.kb.model.po.TopicPo;
import com.itttq.kb.model.po.UserPo;

@Mapper
public interface IUserMapper extends BaseMapper<UserPo>{
	/**
	  * 获取指定排序的N条数据：
	  * @param field 排序字段名称：update_time - 最新；number_reply - 回复最多；number_read - 查看最多
	  * @param List<TopicPo>
	  * @return
	  */
	@Update("update kb_user set  password=#{pwd}, salt = #{salt} where id=#{id}")
	public void modifyPwd(@Param("pwd")String pwd, @Param("salt")String salt, @Param("id")int id);
}